<!DOCTYPE html>
<html lang="en">

<head>
  @@include('./meta.html',{})
</head>

<body class="app-component">
  @@include('./header.html',{
  "components": "active"
  })
  <div class="component-wrapper">
    <div class="component-navleft">
      @@include('./navleft.html',{
      "tab_element": "active"
      })
    </div><!-- component-navleft -->

    <div class="component-sidebar">
      @@include('./sidebar.html',{
      "tab_element": "active",
      "el_tooltips": "active",
      "urlPrefix": "."
      })
    </div><!-- component-sidebar -->

      <div class="component-content">
        <div class="component-content-header">
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb breadcrumb-style1 mg-b-0">
              <li class="breadcrumb-item"><a href="#">Components</a></li>
              <li class="breadcrumb-item"><a href="#">UI Elements</a></li>
              <li class="breadcrumb-item active" aria-current="page">Tooltips</li>
            </ol>
          </nav>
          <a href="javascript:;" id="componentOptions" class="text-secondary mg-l-auto d-xl-none"><i data-feather="more-horizontal"></i></a>
        </div><!-- component-content-header -->

        <div class="component-content-body" data-spy="scroll" data-target="#navSection" data-offset="120">
          <div class="content content-components">
            <div class="container">
              <!--sd-->
              <h1 class="td-title">Tooltips</h1>
        <p class="td-lead">Documentation and examples for adding custom Bootstrap tooltips with CSS and JavaScript using CSS3 for animations and data-attributes for local title storage. Read the <a href="https://getbootstrap.com/docs/4.2/components/tooltips/" target="_blank">Official Bootstrap Documentation</a> for a full list of instructions and other options.</p>

        <hr class="mg-y-40">

        <h4 id="section1" class="mg-b-10">Basic Example</h4>
        <p class="mg-b-30">Hover over the links below to see tooltips.</p>

        <div data-label="Example" class="td-example">
          <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Tooltip on top">
            Tooltip on top
          </button>
          <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="right" title="Tooltip on right">
            Tooltip on right
          </button>
          <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">
            Tooltip on bottom
          </button>
          <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="left" title="Tooltip on left">
            Tooltip on left
          </button>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; data-toggle=&quot;tooltip&quot; data-placement=&quot;top&quot; title=&quot;Tooltip on top&quot;&gt;
  Tooltip on top
&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; data-toggle=&quot;tooltip&quot; data-placement=&quot;right&quot; title=&quot;Tooltip on right&quot;&gt;
  Tooltip on right
&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; data-toggle=&quot;tooltip&quot; data-placement=&quot;bottom&quot; title=&quot;Tooltip on bottom&quot;&gt;
  Tooltip on bottom
&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; data-toggle=&quot;tooltip&quot; data-placement=&quot;left&quot; title=&quot;Tooltip on left&quot;&gt;
  Tooltip on left
&lt;/button&gt;</code></pre>
        <pre><code class="language-js">$(&apos;[data-toggle=&quot;tooltip&quot;]&apos;).tooltip();</code></pre>


        <hr class="mg-t-50 mg-b-40">

        <h4 id="section2" class="mg-b-10">Contextual Variations</h4>
        <p class="mg-b-30">Add any of the below mentioned modifier classes to change the appearance of a badge.</p>

        <div data-label="Example" class="td-example">
          <div class="row row-sm">
            <div class="col-sm-3">
              <button class="btn btn-primary btn-block" data-placement="top" title="Tooltip Primary">Primary</button>
            </div><!-- col -->
            <div class="col-sm-3 mg-t-10 mg-sm-t-0">
              <button class="btn btn-secondary btn-block" data-placement="top" title="Tooltip Primary">Secondary</button>
            </div><!-- col -->
            <div class="col-sm-3 mg-t-10 mg-sm-t-0">
              <button class="btn btn-success btn-block" data-placement="top" title="Tooltip Primary">Success</button>
            </div><!-- col -->
            <div class="col-sm-3 mg-t-10 mg-sm-t-0">
              <button class="btn btn-danger btn-block" data-placement="top" title="Tooltip Primary">Danger</button>
            </div><!-- col -->
          </div><!-- row -->
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;button class=&quot;btn btn-primary&quot; data-placement=&quot;top&quot; title=&quot;Tooltip Primary&quot;&gt;Primary&lt;/button&gt;</code></pre>
        <pre><code class="language-js">$(&apos;.btn-primary&apos;).tooltip({
  template: &apos;&lt;div class=&quot;tooltip tooltip-primary&quot; role=&quot;tooltip&quot;&gt;
              &lt;div class=&quot;arrow&quot;&gt;&lt;/div&gt;
              &lt;div class=&quot;tooltip-inner&quot;&gt;&lt;/div&gt;
            &lt;/div&gt;&apos;
})</code></pre>

        <div class="table-responsive mg-t-25">
          <table class="table table-components">
            <thead>
              <tr>
                <th class="wd-40p">Class Reference</th>
                <th class="wd-60p">Color</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>class="tooltip tooltip-[color]"</td>
                <td>primary | secondary | success | danger | warning | info | light | dark</td>
              </tr>
            </tbody>
          </table>
        </div><!-- table-responsive -->
 
        @@include('./footer.html',{})

            </div>
          </div>
        </div><!-- component-content-body -->

        <div class="component-content-sidebar section-nav">
          <label class="tx-10 tx-medium tx-spacing-1 tx-color-03 tx-uppercase tx-sans mg-b-15">On This Page</label>
          <nav id="navSection" class="nav flex-column">
            <a href="#section1" class="nav-link">Basic Example</a>
            <a href="#section2" class="nav-link">Contextual Variations</a>
          </nav>
        </div><!-- component-content-sidebar -->
      </div><!-- component-content -->

    </div><!-- component-wrapper -->


    @@include('./_script.html',{})

    <script>
      $(function(){
        'use strict'
 
        $('[data-toggle="tooltip"]').tooltip()

        $('.td-example .btn-primary').tooltip({
          template: '<div class="tooltip tooltip-primary" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>'
        })

        $('.td-example .btn-secondary').tooltip({
          template: '<div class="tooltip tooltip-secondary" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>'
        })

        $('.td-example .btn-success').tooltip({
          template: '<div class="tooltip tooltip-success" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>'
        })

        $('.td-example .btn-danger').tooltip({
          template: '<div class="tooltip tooltip-danger" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>'
        })

      });
    </script>
  </body>
</html>
